/**
 * @(#)ApkRetentLogVo.java 2017年11月16日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.domian.channel;

import java.io.Serializable;
import java.util.Date;

/**
 * 历史留存记录配置
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
public class RetentLogConfig implements Serializable {
	/**
	 * serialVersionUID TODO 请描述这个变量的含义
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private Integer apkId;
	private String mark;
	private Date createTime;
	private Date modifyTime;
	private Integer execTimes;
	private Integer retentMonth;
	private Integer taskNum;
	private String sysVer;
	// 留存定时器执行的天
	private Integer timerDay;
	private Integer isFill;
	private String apkName;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getApkId() {
		return apkId;
	}

	public void setApkId(Integer apkId) {
		this.apkId = apkId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Integer getExecTimes() {
		return execTimes;
	}

	public void setExecTimes(Integer execTimes) {
		this.execTimes = execTimes;
	}

	public Integer getRetentMonth() {
		return retentMonth;
	}

	public void setRetentMonth(Integer retentMonth) {
		this.retentMonth = retentMonth;
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	public Integer getTaskNum() {
		return taskNum;
	}

	public void setTaskNum(Integer taskNum) {
		this.taskNum = taskNum;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getSysVer() {
		return sysVer;
	}

	public void setSysVer(String sysVer) {
		this.sysVer = sysVer;
	}

	public Integer getTimerDay() {
		return timerDay;
	}

	public void setTimerDay(Integer timerDay) {
		this.timerDay = timerDay;
	}

	public Integer getIsFill() {
		return isFill;
	}

	public void setIsFill(Integer isFill) {
		this.isFill = isFill;
	}

	public String getApkName() {
		return apkName;
	}

	public void setApkName(String apkName) {
		this.apkName = apkName;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((timerDay == null) ? 0 : timerDay.hashCode());
		result = prime * result + ((apkId == null) ? 0 : apkId.hashCode());
		result = prime * result + ((execTimes == null) ? 0 : execTimes.hashCode());
		result = prime * result + ((retentMonth == null) ? 0 : retentMonth.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RetentLogConfig other = (RetentLogConfig) obj;
		if (timerDay == null) {
			if (other.timerDay != null)
				return false;
		} else if (!timerDay.equals(other.timerDay))
			return false;
		if (apkId == null) {
			if (other.apkId != null)
				return false;
		} else if (!apkId.equals(other.apkId))
			return false;
		if (execTimes == null) {
			if (other.execTimes != null)
				return false;
		} else if (!execTimes.equals(other.execTimes))
			return false;
		if (retentMonth == null) {
			if (other.retentMonth != null)
				return false;
		} else if (!retentMonth.equals(other.retentMonth))
			return false;
		return true;
	}

}
